<script setup>
defineProps({
  title: {
    type: String,
    default: ''
  },
  subTitle: {
    type: String,
    default: ''
  }
})
</script>


<template>
    <!-- home页面面板pannel,解除组件的复用问题 -->
  <div class="home-panel">
    <div class="container">
      <div class="head"> 
        <button class="btn">{{ title }}</button>
        <!-- <button class="btn">猜你喜欢</button> -->
      </div>
      <!-- 主体内容区域 -->
      <div> 
        <!-- 使用具名插槽 -->
        <slot name="main"></slot>
      </div>
    </div>
  </div>
</template>

<style scoped lang='scss'>
.home-panel {
  background-color: #fff;

  .head {
    padding: 40px 0;
    display: flex;
    align-items: flex-end;
    .btn{
      width: 150px;
      margin-left: 20px;
      font-size: 25px;
      font-weight: normal;
      color: white;
      border: none;
      background-color: #04bf04;
      border-radius: 50px; /* 圆角半径 */
      cursor: pointer;
      margin-left: 130px;
    }
    h3 {
      flex: 1;
      font-size: 32px;
      font-weight: normal;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;

      small {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
}
</style>